<?php

namespace CarApi\Controller;
use Think\Controller;
use Common\Model\PatientModel;
use Common\Model\CaseLogicModel;

class CaseController extends Controller {

	/**
	 * 查询病人交接信息接口
	 */
	public function caseStatus(){
		$patientId = I('patient_id');
		if(empty($patientId)){
			$this->ajaxReturn(['status'=>0,'error_info'=>'patient_id 必须提供']);
		}

		$caseLogic = new CaseLogicModel();
		$caseStatus = $caseLogic->getCaseStatus($patientId);
		$this->ajaxReturn(['status'=>1,'data'=>$caseStatus]);
	}
    
}